package com.ldzy.dao;

import com.ldzy.pojo.S_student;
import org.apache.ibatis.annotations.*;

import java.util.List;

public interface S_studentDao {
    @Select("select * from s_student where id=#{id}")
    public S_student finById(int id);
    @Select("select * from s_student where cid=#{cid}")
    public List<S_student> finByAll();

    @Update("update s_student set name=#{name},age=#{age} where id=#{id}")
    public  void eduByid (S_student s_student);

}
